package com.waverider.promotion.web.bg.screen;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class Logout implements Controller {

	@Override
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		request.getSession().invalidate();
		ModelAndView mav = new ModelAndView("forward:/bg/workspace.htm");
		return mav;
	}

}
